﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AutoBlogger.Tool
{
    internal static class CustomTool
    {
        internal static string ClearText(string text)
        {
            StringBuilder sb = new StringBuilder();
            foreach (var item in text.Trim().Replace("\t", string.Empty).Split())
            {
                if (!string.IsNullOrEmpty(item))
                {
                    sb.Append(item);
                    sb.Append("\n");
                }
            }
            sb.Remove(sb.Length - 2, 2);
            return sb.ToString();
        }
    }
}
